﻿<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> 
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MasterPagePicker.aspx.cs" Inherits="IBS.SharePointFoundation.Utilities.Layouts.IBS.SharePointFoundation.Utilities.MasterPagePicker" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<link href="/_layouts/1033/styles/Themable/forms.css" rel="stylesheet" type="text/css"/>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<div style="padding:20px;">
<h3>
Enables selecting a masterpage and applying it to this site and all of it's subsites.
</h3>

    <table class="ms-formtable" style="margin-top: 8px;" border="0" cellpadding="0" cellspacing="0"
        width="100%">
        <tr>
            <td nowrap="true" valign="top" width="190px" class="ms-formlabel">
                <h3 class="ms-standardheader">
                    <nobr>Master Page:</nobr>
                </h3>
            </td>
            <td valign="top" class="ms-formbody">
                <span dir="none">
                    <asp:ListBox ID="lbMasterPages" runat="server" Height="125" Width="200"></asp:ListBox>
                </span>
            </td>
        </tr>
        <tr>
            <td nowrap="true" valign="top" width="190px" class="ms-formlabel">
                <h3 class="ms-standardheader">
                    <nobr>Scope:</nobr>
                </h3>
            </td>
            <td valign="top" class="ms-formbody" >
                <span dir="none">
                    <asp:RadioButtonList ID="rblScope" runat="server" AutoPostBack="True">
                        <asp:ListItem Text="Current Web" Value="web" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Site Collection" Value="site"></asp:ListItem>
                    </asp:RadioButtonList>
                </span>
            </td>
        </tr>
        <tr>
            <td nowrap="true" valign="top" width="190px" class="ms-formlabel">
                <h3 class="ms-standardheader">
                    <nobr></nobr>
                </h3>
            </td>
            <td valign="top" class="ms-formbody" >
                <span dir="none">
                    <asp:CheckBox ID="cbResetToDefault" runat="server" Text="Reset to default?" Visible=false />
                </span>
            </td>
        </tr>
        <tr>
            <td nowrap="true" valign="top" width="190px" class="ms-formlabel">
                <h3 class="ms-standardheader">
                    <nobr></nobr>
                </h3>
            </td>
            <td valign="top" class="ms-formbody" >
                <span dir="none">
                    <asp:CheckBox ID="cbApplyToSubsites" runat="server" Text="Apply to All Sites?" />
                </span>
            </td>
        </tr>
        <tr>
            <td width="190px" class="ms-formlabel"></td>
            <td class="ms-formlabel">
                <table class="ms-formtoolbar" cellpadding="2" cellspacing="0" border="0" width="100%">
                    <tr>
                        <td width="99%" class="ms-toolbar" nowrap="nowrap">
                            <img src="/_layouts/images/blank.gif" width='1' height='18' alt="" />
                        </td>
                        <td class="ms-toolbar" nowrap="nowrap">
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td align="right" width="100%" nowrap="nowrap">
                                        <asp:Button ID="btnSubmit" Text="Ok" runat="server" AccessKey="O" CssClass="ms-ButtonHeightWidth"/>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Master Page Picker
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Master Page Picker
</asp:Content>
